package com.symbio.ishenapi.order.controller;


import com.symbio.ishenapi.common.controller.BaseController;
import com.symbio.ishenapi.order.model.TmAppointmentNumber;
import io.jboot.web.controller.annotation.RequestMapping;

@RequestMapping("/tmAppointmentNumberController")
public class TmAppointmentNumberController extends BaseController {


    /**
     * 飞
     * 根据id获取订单预约次数信息
     */
    public void getById(){
        TmAppointmentNumber tan = (TmAppointmentNumber)getReqBodyObject(TmAppointmentNumber.class);
        TmAppointmentNumber tmAppointmentNumber = TmAppointmentNumber.dao.findById(tan.getId());
        if(tmAppointmentNumber == null){
            tmAppointmentNumber = new TmAppointmentNumber();
        }
            renderJson(tmAppointmentNumber);

    }
}
